class CreateContracts < ActiveRecord::Migration
  def self.up
    create_table :contracts do |t|
      t.integer  :client_id, :null => false, :limit => 11
      t.string   :code, :null => false, :limit => 11
      t.datetime :expiration, :default => nil
      t.text     :notes

      t.datetime :created_at
    end
  end

  def self.down
    drop_table :contracts
  end
end